﻿#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<stdlib.h>

void testMemoryStorageDirection()
{
	//1.16进制数；
	int a = 0xaabbccdd;
	unsigned char* p = &a;
	printf("2.用16进制输出*p指向的值：%x\n", *p);//dd
	printf("3.用16进制输出*(p+1)指向的值：%x\n", *(p + 1));//cc

	//2.NULL，‘\0’,都是0；
	//int* p = 0;
}

//main187：内存的生长方向
int main187()
{
	testMemoryStorageDirection();

	system("pause");
	return EXIT_SUCCESS;
}